#!/bin/bash

a=$(cat xferlog|wc -l)
echo "访问总次数为：$a "
echo "每个访问ip的访问次数如下："
read
cat xferlog |awk '{print $7}'|sort|uniq -c|sort -nr -k1
echo "访问次数前5名为："
read
cat xferlog |awk '{print $7}'|sort|uniq -c|sort -nr -k1|head -5
